<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>设置</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <!--标准mui.css-->
    <link rel="stylesheet" href="__PUBLIC__/css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/app.css"/>
</head>
<body>
<header class="mui-bar mui-bar-nav">
    <a onclick="dump('{:U('indexSet')}')" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <script>
        //url跳转
        function dump(url) {
            location.href=url
        }
    </script>
    <h1 class="mui-title">设置</h1>
</header>
<div class="mui-content">
    <ul class="mui-table-view">
       <!-- <li class="mui-table-view-cell"><a class="fl">清除缓存</a> <span class="fr">100M</span></li>-->
        <li class="mui-table-view-cell"><a href="{:U('about')}" class="mui-navigate-right">关于我们</a></li>
        <li class="mui-table-view-cell"><a class="mui-navigate-right">常见问题</a></li>
        <li onclick="location.href='https://kefu.easemob.com/webim/im.html?configId=02e3671f-3441-425a-9ab7-5f2e166f5ea1'" class="mui-table-view-cell"><a class="mui-navigate-right">在线客服</a></li>
    </ul>
    <button id="tuichu" type="button" class="mui-btn-sz">退出登录</button>
</div>
</body>
</html>
<script src="__PUBLIC__/js/jquery-3.2.1.min.js"></script>
<script>
    //清除所有cookie函数
    function clearAllCookie() {
        var keys = document.cookie.match(/[^ =;]+(?=\=)/g);
        if(keys) {
            for(var i = keys.length; i--;)
                document.cookie = keys[i] + '=0;expires=' + new Date(0).toUTCString()
        }
    }
    $('#tuichu').click(function () {
        clearAllCookie()
        location=location
    })
</script>
